feat(init): support optional path argument like uv init <path>#48
feat(init): support optional path argument like uv init <path>#48Copilot wants to merge 7 commits into
uv init <path>#48Conversation
Agent-Logs-Url: https://github.com/mila-iqia/cluv/sessions/cc01e00f-8efb-43af-8156-8fb2d5ce8f2f Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mila-iqia/cluv/sessions/cc01e00f-8efb-43af-8156-8fb2d5ce8f2f Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
uv init <path>
|
@copilot fix the conflicts in tests/test_init.py and rebase the branch on master. |
…it-path-support Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #48 +/- ##
==========================================
+ Coverage 39.49% 41.92% +2.42%
==========================================
Files 14 14
Lines 1109 1114 +5
==========================================
+ Hits 438 467 +29
+ Misses 671 647 -24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Done in d96d4f9. Merged master into the branch and resolved the conflicts in |
Agent-Logs-Url: https://github.com/mila-iqia/cluv/sessions/6d83d410-7b97-409c-bd8d-320f1bd66512 Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mila-iqia/cluv/sessions/1e0cc9f9-3844-41f8-9258-9c5b0c89de8b Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
cluv initonly operated on the current working directory. This adds an optional<path>argument mirroringuv init <path>behavior.Changes
cluv/cli/init.py:init()acceptspath: Path | None = None; when given, creates the directory (including parents) if missing, thenchdirinto it before the normal init flowcluv/__main__.py: registers optional positional<path>arg (nargs='?',type=Path) on theinitsubparsertests/test_init.py: addsTestInitPathcovering new-dir creation, existing-dir entry, and no-chdir when path is omittedUsage